package com.landinfo.service.dto;


import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the VrManage entity.
 */
public class VrManageDTO implements Serializable {

    private Long id;

    private String title;

    private String url;

    private String imgPath;

    private Double x;

    private Double y;

    private Integer sort;

    private Boolean enable;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Double getX() {
        return x;
    }

    public void setX(Double x) {
        this.x = x;
    }

    public Double getY() {
        return y;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Boolean isEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        VrManageDTO vrManageDTO = (VrManageDTO) o;
        if(vrManageDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), vrManageDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "VrManageDTO{" +
            "id=" + getId() +
            ", title='" + getTitle() + "'" +
            ", url='" + getUrl() + "'" +
            ", imgPath='" + getImgPath() + "'" +
            ", x='" + getX() + "'" +
            ", y='" + getY() + "'" +
            ", sort='" + getSort() + "'" +
            ", enable='" + isEnable() + "'" +
            "}";
    }
}
